package com.itheima.reggie;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Slf4j
@SpringBootApplication
@ServletComponentScan // 扫描webFilter
@EnableTransactionManagement // 开启Transactional注解
@EnableCaching // 开启spring-cat缓存功能
public class ReggieTakeOutApplication {

    public static void main(String[] args) {
        log.info("开始进行springboot 项目");
        SpringApplication.run(ReggieTakeOutApplication.class, args);
    }
}
